<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewPiecesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewPiecesLabel_nom}"/>
                    <h:outputText value="#{piecesController.selected.nom}" title="#{bundle.ViewPiecesTitle_nom}"/>
                    <h:outputText value="#{bundle.ViewPiecesLabel_dateMiseEnMarche}"/>
                    <h:outputText value="#{piecesController.selected.dateMiseEnMarche}" title="#{bundle.ViewPiecesTitle_dateMiseEnMarche}"/>
                    <h:outputText value="#{bundle.ViewPiecesLabel_dureeDeVie}"/>
                    <h:outputText value="#{piecesController.selected.dureeDeVie}" title="#{bundle.ViewPiecesTitle_dureeDeVie}"/>
                    <h:outputText value="#{bundle.ViewPiecesLabel_cout}"/>
                    <h:outputText value="#{piecesController.selected.cout}" title="#{bundle.ViewPiecesTitle_cout}"/>
                    <h:outputText value="#{bundle.ViewPiecesLabel_designation}"/>
                    <h:outputText value="#{piecesController.selected.designation}" title="#{bundle.ViewPiecesTitle_designation}"/>
                    <h:outputText value="#{bundle.ViewPiecesLabel_identifiantPiece}"/>
                    <h:outputText value="#{piecesController.selected.identifiantPiece}" title="#{bundle.ViewPiecesTitle_identifiantPiece}"/>
                    <h:outputText value="#{bundle.ViewPiecesLabel_reference}"/>
                    <h:outputText value="#{piecesController.selected.reference}" title="#{bundle.ViewPiecesTitle_reference}"/>
                    <h:outputText value="#{bundle.ViewPiecesLabel_idMachine}"/>
                    <h:outputText value="#{piecesController.selected.idMachine}" title="#{bundle.ViewPiecesTitle_idMachine}"/>
                    <h:outputText value="#{bundle.ViewPiecesLabel_identIntervention}"/>
                    <h:outputText value="#{piecesController.selected.identIntervention}" title="#{bundle.ViewPiecesTitle_identIntervention}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{piecesController.destroyAndView}" value="#{bundle.ViewPiecesDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewPiecesEditLink}"/>
                <br />
                <h:commandLink action="#{piecesController.prepareCreate}" value="#{bundle.ViewPiecesCreateLink}" />
                <br />
                <h:commandLink action="#{piecesController.prepareList}" value="#{bundle.ViewPiecesShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewPiecesIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
